home *** CD-ROM | disk | FTP | other *** search
- Subject: Creating New Frames in ODF with Request EmbeddedFrame
- Sent: 4/17/96 3:22 PM
- Received: 4/17/96 3:41 PM
- From: Jerome Jahnke, j-jahnke@uchicago.edu
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- How come I don't get a new frame with this? TempFrame turns up empty and my
- parts NewFrame never gets called. Clearly something is wrong and I have no
- doubt it is something rather simple, if someone could give me a hand I
- would greatly appreciate it.
-
- void CDataAndMoviePart::NewMovieFrame( Environment *ev, CMovieFrame *RefFrame )
- {
- FW_CRect frameRect = RefFrame->GetBounds( ev );
- FW_CRect contentRect(frameRect);
-
- contentRect.Place( FW_kZeroPoint);
-
- contentRect.top = frameRect.bottom + FW_IntToFixed(0);
- contentRect.bottom = contentRect.top + FW_IntToFixed(50);
-
- ODSession *session = GetSession(ev);
- ODFrame *ContainingFrame = RefFrame->AcquireContainingFrame(ev);
- ODPart *ContainingPart = ContainingFrame->AcquirePart(ev);
- ODFrame *tempFrame;
-
- tempFrame = ContainingPart->RequestEmbeddedFrame(
- ev,
- ContainingFrame,
- RefFrame->GetODFrame(ev),
- ::FW_NewODShape( ev, contentRect ),
- GetODPart(ev),
- gViewAsFrameToken,
- session->Tokenize(ev,kDebugPresentation),
- FALSE );
- }
-
- Jer,
-
- ------------------------------------------------------------------------------
- Jerome Jahnke |Well, I was only a kid didn't know enough to be afraid
- BSD Academic Computing |Playing the game, but not the way the big boys played
- University of Chicago |Nothing to lose maybe I had something to trade
- j-jahnke@uchicago.edu |The way the big wheel spins * The Big Wheel -- N Peart
- ----------------------------------------------------------------------------
- --
-
-